home *** CD-ROM | disk | FTP | other *** search
- function setDialogSize(x, y)
- {
- var app2 = new ActiveXObject('FSI.FSIApplication2');
- var x1 = x * app2.LogPixelsX / 96;
- var y1 = y * app2.LogPixelsY / 96;
-
- if (x1 != document.body.clientWidth || y1 != document.body.clientHeight)
- {
- var h = window.dialogHeight;
- h = h.substr(0, h.length - 2) - 0;
- var w = window.dialogWidth;
- w = w.substr(0, w.length - 2) - 0;
-
- window.dialogWidth = w + x1 - document.body.clientWidth + 'px';
- window.dialogHeight = h + y1 - document.body.clientHeight + 'px';
- }
- }
-
-